package cn.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 配送任务表
 * </p>
 *
 * @author mp
 * @since 2025-06-16
 */
@Getter
@Setter
@TableName("delivery_tasks")
public class DeliveryTasks implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Long orderId;

    private Integer deliverymanId;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    /**
     * 0-进行中 1-已完成 2-已取消
     */
    @TableField("`status`")
    private int status;

    private LocalDateTime createdAt;
    private Integer isCollected;
}
